package handler;



public class HandlerFactory {

	private HandlerFactory() {}
	
	public static IHandler getHandler(String requestParam) {
		if ("getCds".equals(requestParam)) {
			return new LoadDiscHandler();
		} else if ("getProducers".equals(requestParam)) {
			return new LoadProducerHandler();
		} else if ("getTypes".equals(requestParam)) {
			return new LoadTypesHandler();
		} else if("insertCD".equals(requestParam)) {
			return new LoadInsertDiscHandler();
		} else if("deleteCD".equals(requestParam)) {
			return new LoadDeleteDiscHandler();
		} else if("editCD".equals(requestParam)) {
			return new LoadEditDiscHandler();
		}
		return null;
	}
}
